<?php

namespace App\Http\Resources\School;

use Illuminate\Http\Resources\Json\Resource;

/**
 * Class PriceCategoryResource
 * @package App\Http\Resources\School
 */
class PriceCategoryResource extends Resource
{
    /**
     * @param \Illuminate\Http\Request $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'school_id' => $this->school_id,
            'name' => $this->name,
            'status' => $this->status,
            'description' => $this->description,
            'updated_at' => $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null
        ];
    }
}
